﻿<%@ Page Language="C#" MasterPageFile="~/_shared/default01.master" AutoEventWireup="true"
    CodeFile="OfertarCursos.aspx.cs" Inherits="academico_OfertarCursos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phContent" runat="Server">
    <div class="titulo-pags">
        Ofertar Cursos</div>
    <div class="subtitulo-pags-acao">
        <asp:Literal ID="litSubtituloAcao" runat="server"></asp:Literal>
    </div>
    <br />
    <br />
    <fieldset>
        <legend>Informações do Curso</legend>
        <br />
        <div id="validacao" class="validacao" visible="false" runat="server">
            <span style="font: normal 0.9em Arial, Helvetica, sans-serif;">
                <asp:Literal ID="litAviso" runat="server"></asp:Literal>
            </span>
        </div>
        <div id="info" class="info" visible="false" runat="server">
            <span style="font: normal 0.9em Arial, Helvetica, sans-serif;">
            <asp:Literal ID="litInfo" runat="server"></asp:Literal>
            </span>
        </div>
        <br />
        <table class="form-cadastro">
            <tr>
                <td class="texto">
                    Descrição:
                </td>
                <td>
                    <asp:TextBox ID="tbDescricao" runat="server" Width="150px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Curso:
                </td>
                <td>
                    <asp:DropDownList ID="cmbCursos" runat="server" Width="220px" AutoPostBack="True"
                        OnSelectedIndexChanged="cmbCursos_SelectedIndexChanged">
                        <asp:ListItem>- Selecione -</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Grade:
                </td>
                <td>
                    <asp:DropDownList ID="cmbGrade" runat="server" Width="220px">
                        <asp:ListItem>- selecione um curso -</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Turno:
                </td>
                <td>
                    <asp:DropDownList ID="cmbTurnos" runat="server" Width="220px">
                        <asp:ListItem>- Selecione -</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Matriculas de:
                </td>
                <td>
                    <asp:TextBox ID="tbDataInicio" runat="server" Width="70px"></asp:TextBox>
                    &nbsp;à
                    <asp:TextBox ID="tbDataFim" runat="server" Width="70px"></asp:TextBox>
                    <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="tbDataInicio"
                        Format="dd/MM/yyyy">
                    </cc1:CalendarExtender>
                    <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="tbDataFim"
                        Format="dd/MM/yyyy">
                    </cc1:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Vagas:
                </td>
                <td>
                    <asp:TextBox ID="tbNumeroVagas" runat="server" Width="42px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <br />
    <fieldset>
        <legend>Plano de Pagamento</legend>
        <br />
        <table class="form-cadastro">
            <!---

        --->
            <tr>
                <td class="texto">
                    Plano de pagamento:
                </td>
                <td>
                    <asp:DropDownList ID="cmbPlanosPagamento" runat="server" Width="220px">
                        <asp:ListItem>- Selecione -</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <br />
    <fieldset>
        <legend>Coordenação</legend>
        <br />
        <table class="form-cadastro">
            <tr>
                <td class="texto">
                    Coordenador:
                </td>
                <td>
                    <asp:DropDownList ID="cmbCoordenador" runat="server" Width="220px">
                        <asp:ListItem>- Selecione -</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="texto">
                    Observações:
                </td>
                <td>
                    <asp:TextBox ID="tbObs" runat="server" Height="117px" TextMode="MultiLine" Width="291px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
    <br />
    <fieldset>
        <legend>Documentos necessários</legend>
        <br />
        <table class="form-cadastro">
            <tr>
                <td class="texto">
                    Adicione Documentos:
                </td>
                <td valign="middle">
                    <asp:DropDownList ID="cmbDocumentos" runat="server" Width="220px">
                        <asp:ListItem>- Selecione -</asp:ListItem>
                    </asp:DropDownList>
                    
                    <asp:CheckBox ID="chkDocumentoObrigatorio" Visible="false" runat="server" Text=" Obrigatório" Checked="True" />
                    <asp:Button ID="btAdicionaDocumento" runat="server" Text="Adicionar" OnClick="btAdicionaDocumento_Click" />
                </td>
            </tr>
            <tr>
                <td class="texto">
                </td>
                <td>
                    <telerik:RadGrid ID="grdDocumentos" Width="50%" runat="server" 
                       Skin="Office2007" GridLines="None">
                        <GroupPanel ID="GroupPanel" Style="width: 100%;">
                        </GroupPanel>
                        <ExportSettings>
                            <Pdf PaperSize="Letter" FontType="Subset"></Pdf>
                            <Excel Format="Html"></Excel>
                        </ExportSettings>
                        <MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border"
                            TableLayout="Auto" CommandItemDisplay="None" AutoGenerateColumns="False">
                            <RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                                Visible="False">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType"
                                Visible="False" Resizable="False">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Documento.Nome"
                                    FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Nome do Documento"
                                    UniqueName="Documento.Nome">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn CurrentFilterFunction="NoFilter" 
                                    DataField="Obrigatorio" DataType="System.Boolean" 
                                    FilterListOptions="VaryByDataType" ForceExtractValue="None" 
                                    HeaderText="Obrigatório" UniqueName="Obrigatorio">
                                    <EditItemTemplate>                                        
                                    </EditItemTemplate>
                                    <ItemTemplate>                                        
                                        <asp:CheckBox ID="chkDocumentoObrigatorio" 
                                            Checked='<%# DataBinder.Eval(Container, "DataItem.Obrigatorio") %>' runat="server" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>
                    <br />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:ImageButton ID="btSalvarAtualizar" Visible="false" runat="server" ImageUrl="~/_shared/img/bt_salvar_alteracoes.jpg" />
                    <br />
                    <asp:Button ID="btSalvar" runat="server" Text="Salvar" OnClick="btCriarSalvar_Click" />
                    &nbsp;ou <a href="#">Cancelar</a>
                    <br />
                    <br />
                </td>
            </tr>
        </table>
    </fieldset>
    <br />
</asp:Content>
